export default {
    watch: {
        projectKey: {
            immediate: true,
            handler(projectKey,oldKey) {
                if (projectKey&&oldKey&&projectKey!=oldKey) {
                    this.ReLoadProject();
                }
            },
        },
    },
    computed: {
        projectKey() {
            return this.$store.state.projectKey;
        },
    },
    methods: {
        ReLoadProject() {
            this.$router.push({
                name: 'Index',
            });
        }
    }
}
